<template>
  <div>
    <div class="clock-box">
      <CompassClock
          color="#ff6ec7"
          :format="format"
          :gap="10"
          :fontSize="10"
          highlightColor="#000000"
          ref="cc"
      />
    </div>
    <div>
      <button @click="cc.start">开始</button>
      <button @click="cc.stop">暂停</button>
    </div>
  </div>
</template>

<script setup>
import { ref,reactive } from "vue"

const format = reactive(["Year","Month","Day","Week","hour","minute","seconds"])

const cc = ref()
</script>

<style scoped>
.clock-box {
  width: 70%;
  aspect-ratio: 1 / 1;
  margin: 10px auto;
}
</style>